package com.pediOnline.Controlador;

import java.security.Principal;

import org.apache.log4j.Logger;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/main")
public class MainController {
 
protected static Logger logger = Logger.getLogger("controller");

@RequestMapping(value = "/inicio", method = RequestMethod.GET)
public String getCommonPage(Principal principal) {
	logger.debug("Go to Inicio");
	System.out.println(principal);
return "inicio";
}
 
}